package com.foreknow.mapping;

import com.foreknow.bean.Person;

import java.sql.ResultSet;
import java.sql.SQLException;

public class PersonMapping implements EntityMapping {
    @Override
    public Object mapping(ResultSet rs) throws SQLException {
        Person person = new Person();
        person.setId(rs.getInt("ID"));
        person.setName(rs.getString("NAME"));
        return person;
    }
}
